package com.gupao.coupon.portal.couponportal.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.gupao.normal.user.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Mic
 * @公众号： 跟着Mic学架构
 * @官网： https://ke.gupaoedu.cn
 * @Org: 咕泡教育
 **/
@RestController
public class UserController {

    @DubboReference
    IUserService userService;

    @GetMapping("/coupon")
    public String validCoupons(){
        return userService.selectValidTemplates();
    }

}
